﻿using System;
using System.Collections.Generic;
using System.Data;
using Runda.EShop.Common.Utility;
using Runda.EShop.Dal;
using Runda.EShop.Common.Entity;


namespace Runda.EShop.Bll
{
    public partial class BasProductBll 
    {
        public DataTable GetOldestProductInventory(string ProductCode)
        {
            BasProductDal dal = new BasProductDal();
            return dal.GetOldestProductInventory(ProductCode);
        }

        public DataTable GetOldestProductInventory(string Company,string ProductCode)
        {
            BasProductDal dal = new BasProductDal();
            return dal.GetOldestProductInventory(Company,ProductCode);
        }

        //保留库存
        public DataTable GetHoldProductStock(string EntCode,string ProductCode)
        {
            BasProductDal dal = new BasProductDal();
            return dal.GetHoldProductStock(EntCode,ProductCode);
        }
        public DataTable GetHoldProductStock(string CustomerID,string EntCode, string ProductCode)
        {
            BasProductDal dal = new BasProductDal();
            return dal.GetHoldProductStock(CustomerID,EntCode, ProductCode);
        }

        public DataTable QueryProduct(CustomerProductQueryConditionEntity Condition, string OrderBy, int PageSize, int PageIndex, out int RecordCount)
        {
            BasProductDal dal = new BasProductDal();
            return dal.QueryProduct(Condition, OrderBy, PageSize, PageIndex, out RecordCount);
        }

        public DataTable QueryProductTrademark(Guid Customer, Guid? InstrumentID, string CateCode, int CateType)
        {
            BasProductDal dal = new BasProductDal();
            return dal.QueryProductTrademark(Customer, InstrumentID, CateCode, CateType);
        }
        //品牌
        public DataTable QueryProductTrademark()
        {
            BasProductDal dal = new BasProductDal();
            return dal.QueryProductTrademark();
        }
        public DataTable QueryProductCate()
        {
            BasProductDal dal = new BasProductDal();
            return dal.QueryProductCate();
        }

        public DataTable QueryProductCateEx()
        {
            BasProductDal dal = new BasProductDal();
            return dal.QueryProductCateEx();
        }

    }
}

